﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/Main.Master" AutoEventWireup="true"
    CodeBehind="SellerManage.aspx.cs" Inherits="ATW.MT.SellManage.SellerManage" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cp01" runat="server">
    <div class="main_hd">
        <h2 style="padding: 0px 20px;">
            销售人员管理
        </h2>
        <div class="title_tab" id="topTab">
            <ul>
                <li>用户名称：&nbsp;<input type="text" id="txtName" runat="server" />&nbsp; 状态：&nbsp;
                    <asp:DropDownList runat="server" ID="ddlStatus">
                        <asp:ListItem Text="全部" Value=""></asp:ListItem>
                        <asp:ListItem Text="正常" Value="0"></asp:ListItem>
                        <asp:ListItem Text="已删除" Value="2"></asp:ListItem>
                    </asp:DropDownList>
                    &nbsp;
                    <asp:Button runat="server" ID="btnSearch" Text="搜索" class="MaintenanceButton" OnClick="btnSearch_Click"
                        Style="background: #d91913; outline: none; border: none; color: White; padding: 5px 20px;" />
                    &nbsp;
                    <asp:LinkButton runat="server" ID="lbnAddSeller" OnClick="lbnAddSeller_Click" CssClass="queryButton">新增销售</asp:LinkButton>
                    &nbsp; &nbsp; </li>
            </ul>
            <ul>
                <li>
                    <asp:Label runat="server" ID="lblError" ForeColor="Red" Font-Bold="true"></asp:Label></li>
            </ul>
        </div>
        <asp:Repeater ID="rpList" runat="server">
            <HeaderTemplate>
                <table width="95%" border="0" cellpadding="0" cellspacing="0" style="font-size: 14px"
                    class="queryResultTable">
                    <tr>
                        <th>
                            用户名称
                        </th>
                        <th>
                            用户账号
                        </th>
                        <th>
                            用户邮箱
                        </th>
                        <th>
                            下属客户
                        </th>
                        <th>
                            邀请码
                        </th>
                        <th>
                            状态
                        </th>
                        <th>
                            操作
                        </th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <%#Eval("tauName").ToString() %>
                    </td>
                    <td>
                        <%#Eval("tauloginid").ToString() %>
                    </td>
                    <td>
                        <%#Eval("tauEmail").ToString()%>
                    </td>
                    <td>
                        <%#Eval("cnum").ToString() %>
                    </td>
                    <td>
                        <asp:Label runat="server" ID="lblCode" Text='<%#Eval("codeSelf").ToString()%>'></asp:Label>
                    </td>
                    <td>
                        <%#Eval("taurowstatus").ToString()=="0"?"正常":"删除" %>
                    </td>
                    <td>
                        <asp:LinkButton runat="server" ID="lbnDel" Visible='<%#Eval("taurowstatus").ToString()=="0"?true:false %>'
                            OnClick="lbnDel_Click" CommandArgument='<%#Eval("tauloginID").ToString() %>'>删除</asp:LinkButton>
                        <asp:LinkButton runat="server" ID="lbnRecover" Visible='<%#Eval("taurowstatus").ToString()=="2"?true:false %>'
                            OnClick="lbnRecover_Click" CommandArgument='<%#Eval("tauloginID").ToString() %>'>恢复</asp:LinkButton>
                        <asp:LinkButton runat="server" ID="lbnAllocate" Visible='<%#Eval("taurowstatus").ToString()=="0"?true:false %>'
                            OnClick="lbnAllocate_Click" CommandArgument='<%#Eval("codeSelf").ToString() %>'>分配客户</asp:LinkButton>
                        <%--  --%>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
        <cc1:AspNetPager ID="AspNetPager1" Style="float: right" runat="server" PageSize="10"
            AlwaysShow="true" CssClass="paginator" CurrentPageButtonClass="cpb" FirstPageText="首页"
            PagingButtonSpacing="0" LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页"
            OnPageChanged="AspNetPager1_pageChanged">
        </cc1:AspNetPager>
    </div>
    <div id="divMsg" style="display: none;">
        <div class="tc_header">
            <h2>
                提示</h2>
            <a id="hideMsg">
                <img src="../images/chacha.png" width="13" height="13"></a>
        </div>
        <div class="tc_content">
            <div class="tanchu03" style="min-width: 200px,min-height:80px">
                <p id="msgContent">
                </p>
            </div>
        </div>
    </div>
</asp:Content>
